package code.vo {

[Bindable]
public class Topic {
	
	public var topicId: int;
	
	public var userId: int;
	
	public var categoryId: int;
	
	public var title: String;
	
	// public var created: Date;
	
	public var voteCnt: int;
	
	public var yetVoted: Boolean;
	
	public var isVotingInProgress: Boolean;
	
	
	public function Topic(topicId: int, userId: int, categoryId: int, title: String, voteCnt: int, yetVoted: Boolean) {
		if(userId <= 0) {
			throw new Error("userId["+userId+"] <= 0");
		}
		this.topicId = topicId;
		this.userId = userId;
		this.categoryId = categoryId;
		this.title = title;
		this.voteCnt = voteCnt;
		this.yetVoted = yetVoted;
	}

}
}